package com.Ajava1704.for设计模式.for动态代理.JDK代理02;

import java.lang.reflect.Proxy;

/**
 * 作者: LCG
 * 日期: 2020/6/27 22:48
 * 描述:
 */
public class TestMainAPi {
    public static void main(String[] args) {

        TestHandler testHandler=new TestHandler();

        Class<TestApi> testApiClass = TestApi.class;
        Class[] clas={testApiClass};


        TestGetInstance<TestApi> testGetInstance=new TestGetInstance<TestApi>();
        TestApi objectInstance = testGetInstance.getObjectInstance(testApiClass, testHandler);

        objectInstance.test01("参数");

    }
}
